import { IsNotEmpty, IsPhoneNumber } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class LoginDTO {
  @ApiProperty({
    description: 'phone',
    default: '17382991122',
  })
  @IsNotEmpty({ message: 'phone不能为空' })
  @IsPhoneNumber('CN')
  readonly phone: string;
}
